<style>
        .layui-form-label {
                width: 70px;
        }
</style>
<div class="layuimini-container">
        <div class="layuimini-main" id="app">

                <div class="layui-tab-content">
                        <div class="layui-tab-item layui-show">
                                <form id="app-form" class="layui-form layuimini-form">
                                        <input type="hidden" name="field" value="friendly_link">
                                        <div class="layui-form-item">
                                                <label class="layui-form-label">显示开关</label>
                                                <div class="layui-input-block">
                                                        <input type="hidden" name="switch" value="0">
                                                        <input type="checkbox" name="switch" value="1" {if sysconfig('friendly_link.switch')
                                                        eq 1} checked {/if} lay-skin="switch" lay-text="开|关">

                                                </div>
                                        </div>
                                        <div class="layui-form-item">
                                                <label class="layui-form-label">自助申请开关</label>
                                                <div class="layui-input-block">
                                                        <input type="hidden" name="self_apply" value="0">
                                                        <input type="checkbox" name="self_apply" value="1" {if sysconfig('friendly_link.self_apply')
                                                        eq 1} checked {/if} lay-skin="switch" lay-text="开|关">

                                                </div>
                                        </div>
                                        <div class="layui-form-item">
                                                <label class="layui-form-label">单用户每天可申请</label>
                                                <div class="layui-input-inline">
                                                        <input type="number" name="user_day_max" value="{:sysconfig('friendly_link.user_day_max')}"
                                                               autocomplete="off" class="layui-input">
                                                </div>
                                        </div>
                                        <div class="layui-form-item">
                                                <label class="layui-form-label">显示数量</label>
                                                <div class="layui-input-inline">
                                                        <input type="number" name="show_num" value="{:sysconfig('friendly_link.show_num')}"
                                                               autocomplete="off" class="layui-input">
                                                </div>
                                        </div>
                                        <div class="layui-form-item">
                                                <label class="layui-form-label">单IP每天可申请</label>
                                                <div class="layui-input-inline">
                                                        <input type="number" name="ip_day_max" value="{:sysconfig('friendly_link.ip_day_max')}"
                                                               autocomplete="off" class="layui-input">
                                                </div>
                                        </div>
                                        <div class="layui-form-item">

                                                        <label class="layui-form-label">友链标语</label>
                                                        <div class="layui-input-block">
                                                                <textarea name="desc"  class="layui-textarea">{:sysconfig('friendly_link.desc')}</textarea>
                                                        </div>

                                        </div>


                                        <div class="hr-line"></div>
                                        <div class="submit-info text-center">
                                                <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit="system.config/save" data-refresh="false">确认</button>
                                                <a class="layui-btn layui-btn-primary layui-btn-sm" layform-close>关闭</a>
                                        </div>

                                </form>
                        </div>
                </div>


        </div>
</div>

